Skip to content

Conversation

@dciabrin
Copy link
Contributor

@dciabrin dciabrin commented Nov 12, 2025

When a mysql server starts with galera enabled, the galera library performs actions before the InnoDB engine is fully initialized and the server is ready to process SQL commands. Until then, no script should probe the mysql server.

Ensure that mysql_wsrep_notify does not probe root credentials before it knows the server mysql server is fully initialized, i.e. when the script knows that the local node is synced (primary partition).

In addition, to prevent other scripts from getting stalled while probling the mysql server (e.g. when a remote node cannot be reached), add a timeout period in the credential check logic.

Jira: OSPRH-14916

@openshift-ci openshift-ci bot requested review from dprince and lmiccini November 12, 2025 12:44
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 12, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dciabrin

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

stuggi and others added 2 commits November 12, 2025 18:43
The base image for latest tag got update to 9.7 where fips test
started to fail. This pins it for now to the 9.6 tag

Signed-off-by: Martin Schuppert <[email protected]>
(cherry picked from commit 14c4150)
…ialized

When a mysql server starts with galera enabled, the galera library
performs actions before the InnoDB engine is fully initialized and
the server is ready to process SQL commands. Until then, no
script should probe the mysql server.

Ensure that mysql_wsrep_notify does not probe root credentials before
it knows the server mysql server is fully initialized, i.e. when
the script knows that the local node is synced (primary partition).

In addition, to prevent other scripts from getting stalled while
probling the mysql server (e.g. when a remote node cannot be reached),
add a timeout period in the credential check logic.

Jira: OSPRH-14916
@zzzeek
Copy link
Contributor

zzzeek commented Nov 12, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 12, 2025
@zzzeek zzzeek removed their assignment Nov 12, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 231c653 into openstack-k8s-operators:main Nov 12, 2025
7 checks passed
@abays abays mentioned this pull request Nov 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants